#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：turbo 
@File    ：constants.py
@Author  ：赵加响
@Date    ：2023/5/17 13:24 
@Desc    ：中间件中用到的常量
"""

# API访问白名单
WHITE_LIST = [
    '/'
    'login/',
    '/favicon.ico',
    '/account/info/',
    '/account/update_password/',
    '/account/update_avatar/',
    '/media/',
    '/static/',
    '/import_templates/',
    '/conf/admin/',
    '/common/'
]

# Admin访问白名单
ADMIN_CONF_WHITE_LIST = [
    '/conf/admin',
    '/conf/api-auth',
    '/conf/docs'
]

# Green Light URL无需鉴权
GREEN_LIGHT = 'green_light'

ADMIN_URL_PREFIX = '/conf/admin'
API_URL_PREFIX = '/api'
